package com.wzh.glsc.product.service;

import com.baomidou.mybatisplus.extension.service.IService;
import com.wzh.common.utils.PageUtils;
import com.wzh.glsc.product.entity.AttrEntity;
import com.wzh.glsc.product.vo.AttrRespVo;
import com.wzh.glsc.product.vo.AttrVo;

import java.util.List;
import java.util.Map;

/**
 * 商品属性
 *
 * @author lcm
 * @email 1291529969@gmail.com
 * @date 2022-03-16 19:32:04
 */
public interface AttrService extends IService<AttrEntity> {

    PageUtils queryPage(Map<String, Object> params);

    void saveAttr(AttrVo attr);

    //规格参数列表
    PageUtils queryBaseListPage(Map<String, Object> params, Long catelogId, String attrType);

    AttrRespVo getAttr(Long attrId);

    void updateAttr(AttrRespVo attrRespVo);

    //分组没有关联的属性
    PageUtils noattrRelation(Map<String, Object> params, Long attrGroupId);

    List<AttrEntity> getRelationAttrByAttrGroupId(Long attrGroupId);
    //查可以被检索的attrId
    List<Long> getSearchAttrIdByAttrs(List<Long> attrIdList);
}

